home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY-2.2 / SCENES / level2 / EIGHT < prev    next >
Text File  |  1993-09-28  |  3KB  |  137 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By  Ville Saari
  4. // Copyright (c) 1991 Ferry Island Pixelboys
  5. /* NOTE: Requires "eight_.iff"
  6. *
  7. * POV-Ray scene description for two billiard balls
  8. * Created: 07-Jan-91
  9. * Updated: 09-Jan-91
  10. *          19-Jan-92 dmf (see below)
  11. *
  12. * If you do some nice modifications or additions to this file, please send 
  13. * me a copy. My Internet address is:
  14. *
  15. *         vsaari@niksula.hut.fi
  16. *
  17. *  Modified somewhat by dmf for POV-Ray 2.0:
  18. *  decreased most ambient values a bit
  19. *  increased phong_size on balls
  20. *  fixed the image_map ... interpolation didn't work.
  21. *  modified the wood on the questick a bit
  22. */
  23.  
  24. camera {
  25.    location <-15.0, 8.0, -10.0>
  26.    direction <0.0, 0.0, 1.0>
  27.    up <0.0, 1.0, 0.0>
  28.    right <4/3, 0.0, 0.0>
  29.    sky <0.0, 1.0, 0.0>
  30.    look_at <0.0, 5.0, 5.0>
  31. }
  32.  
  33. // tabletop
  34. plane { y, 0.0
  35.    pigment { colour green 0.7 }
  36.    finish {
  37.       ambient 0.3
  38.       diffuse 0.7
  39.       crand 0.08
  40.    }
  41. }
  42.  
  43. // eightball
  44. sphere { <0, 5, 0>, 5.0
  45.    texture {
  46.       pigment { rgb <0, 0, 0> }
  47.       finish {
  48.          ambient 0.15
  49.          diffuse 0.8
  50.          brilliance 1.0 
  51.          phong 1.0      
  52.          phong_size 90
  53.          reflection 0.15
  54.       }
  55.    }
  56.  
  57.    texture {
  58.       pigment {
  59.          image_map { iff "eight_.iff" once interpolate 2.0 filter 0 1.0 }
  60.          translate <-0.5, -0.5, -0.5>
  61.          scale <4.0, 4.0, 4.0>
  62.          rotate <-30.0, 20.0, -45.0>
  63.          translate 5*y
  64.       }
  65.       finish {
  66.          ambient 0.15
  67.          diffuse 0.8
  68.          brilliance 1.0 
  69.          phong 1.0      
  70.          phong_size 90
  71.          reflection 0.15
  72.       }
  73.    }
  74. }
  75.  
  76. sphere { <0, 5, 10>, 5.0
  77.    pigment { rgb <1, 1, 1> }
  78.    finish {
  79.       ambient 0.2
  80.       diffuse 0.8
  81.       brilliance 1.0 
  82.       phong 1.0      
  83.       phong_size 80
  84.       reflection 0.15
  85.    }
  86. }
  87.  
  88. // stick
  89. union {
  90.    intersection {
  91.       quadric {
  92.          <900.0, 900.0, -1.0>
  93.          <0.0 0.0 0.0>
  94.          <0.0 0.0 0.0>
  95.          0.0
  96.          translate -30*z
  97.       }
  98.       plane { -z, 0.0 }
  99.  
  100.       pigment {
  101.          wood
  102.          turbulence 0.02                 // dmf
  103.          translate <50.0, -50.0, 0.0>
  104.          // scale <0.3, 0.3, 1000>       // vs
  105.          scale <0.1, 0.1, 1000>          // dmf
  106.          // rotate <-10.0, 0.0, 45.0>    // vs
  107.          rotate <-10.0, 0.0, 15.0>       // dmf
  108.       }
  109.       finish {
  110.          ambient 0.15
  111.          diffuse 0.8
  112.          phong 1.0      
  113.          phong_size 20
  114.          reflection 0.15
  115.       }
  116.    }
  117.  
  118.    // Blue tip on stick
  119.    intersection {
  120.       sphere { <0.0, 0.0, -0.2>, 1.1 }
  121.       plane { <0.0, 0.0, 1.0>, 0.0 }
  122.       plane { <0.0, 0.0, -1.0>, 0.4 }
  123.  
  124.       pigment { colour red 0.2 green 0.5 blue 1.0 }
  125.       finish {
  126.          ambient 0.15
  127.          diffuse 0.8
  128.       }
  129.    }
  130.  
  131.    rotate <-10.0, 0.0, 45.0>
  132.    translate <-4.5, 6.0, 14.5>
  133. }
  134.  
  135. light_source { <-30.0, 30.0, -15.0> colour red 1.0 green 1.0 blue 1.0 }
  136.